#include "MergeBox.h"
#include "../runtime/AutomaticBoxCreatorRegistration.h"

namespace jm4bbx {

	using namespace bobox;

	//const char* MergeBoxDescriptor::BOX_ID = "Merge";
	REGISTER_BOX_TO_RUNTIME_BASE(Merge, MergeBox);


	const groupType MergeBoxDescriptor::INPUT_GROUP_BEGIN = groupType(1);


	const groupType MergeBoxDescriptor::OUTPUT_GROUP = groupType(0);


	const  columnType MergeBoxDescriptor::INPUT_COLUMN = 
		columnType(0);


	const  columnType MergeBoxDescriptor::OUTPUT_COLUMN = 
		columnType(0);


	const  inType MergeBoxDescriptor::IN_ARC_BEGIN = 
		inType(0);


	const  outType MergeBoxDescriptor::OUT_ARC = 
		outType(0);


	const char* MergeBoxDescriptor::MERGE_FACTOR_PARAM_NAME = "mergeFactor";


	inType MergeBoxDescriptor::getInArc(int index) {
		return inType(IN_ARC_BEGIN + index);
	}

	groupType MergeBoxDescriptor::getInGroup(int index) {
		return groupType(INPUT_GROUP_BEGIN + index);
	}

} // namespace jm4bbx
